<?php
/**
 * 
 * @author long
 *
 */
class NounDictHelper
{
	/**
	 * 
	 */
	public static function getSynonymous($term,$type)
	{
		$criteria = new CDbCriteria;
		
		$criteria->select = "avalue";
		
		$criteria->condition = 'akey=?';
		
		$criteria->params = array(addslashes($term));
		
		$ret = Nouns::model()->find($criteria);
		
		if($type == '')
		{
			
		}
		
		return $ret['avalue'];
	}
}